<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Buscar.aspx.cs" Inherits="Secretaria_Buscar"  %>

<%@ Register Src="../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">
<style type="text/css" media="all">
@import "../profesores/css/global.css";
</style>
<script src="../Libs/jquery-1.2.6.js" type="text/javascript"></script>
<script src="../Libs/jtip.js" type="text/javascript"></script>
<script language="javascript">
function ShowBoletin(idAlumno, idCurso){
//window.open("../html/resumendenotas/r.asp?idalumno=" +idAlumno +"&idSedeCurso="+idCurso);
window.open("bol.aspx?idalumno=" +idAlumno +"&idSedeCurso="+idCurso);
}
</script>
    <table style="width: 100%">
        <tr>
            <td style="width: 121px" >
                Apellido Nombre</td>
            <td>
                <asp:TextBox ID="txtBuscar" runat="server" Width="243px"></asp:TextBox></td>
            <td >
            </td>
        </tr>
        <tr>
            <td style="width: 121px; height: 26px;">
                Por Curso</td>
            <td style="height: 26px">
                <uc1:CboGeneric ID="cboCursos" runat="server" TipoOrigen="Vista" />
            </td>
            <td style="width: 121px; height: 26px;">
                <asp:Button ID="cmdBuscar" runat="server" OnClick="cmdBuscar_Click" Text="Buscar" /></td>
        </tr>
        <tr>
            <td style="width: 121px">
            </td>
            <td>
    <asp:GridView ID="gvAlumnos" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="IdAlumno"  HeaderText="Id"  Visible="False"/>
            <asp:TemplateField HeaderText="Alumno">
                <ItemTemplate>
                   <span class="formInfo">
                      <a class="jTip"  id="<%# Eval("IdAlumno") %>" name="Datos del alumno" href="../admin/datospersonales.aspx?idalumno=<%# Eval("IdAlumno") %>"><%# Eval("Alumno") %></a>
                    </span>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Alumno") %>'></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="cursodescrip"  HeaderText="Curso"/>
            <asp:TemplateField HeaderText="Boletin">
                
                <ItemTemplate>
                
                <a href="#" onclick="ShowBoletin(<%# Eval("IdAlumno") %>,<%# Eval("IdCurso") %>);">Ver</a>
                    
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
            </td>
            <td style="width: 121px">
            </td>
        </tr>
    </table>
</asp:Content>

